import 'dart:io';
import 'dart:convert';
saveStringToFileSync(String filePath,String content,{FileMode fileMode=FileMode.append}){

  File file=File(filePath);
  file.writeAsStringSync(content,mode:fileMode);
}
Future<File> saveStringToFile(String filePath,String content,{FileMode fileMode=FileMode.append}) async{
  File file=File(filePath);
  return await file.writeAsString(content,mode:fileMode);
}
readStringFromFileSync(String filePath,{Encoding encoding=utf8}){
  File file=File(filePath);
  return file.readAsStringSync(encoding: encoding);
}
readStringFromFile(String filePath,{Encoding encoding=utf8}) async{
  File file=File(filePath);
  return await file.readAsString(encoding: encoding);
}